• ProTERM's Quick Index is available for this document.
When this file is opened from a ProTERM Help menu, a small table of
contents or "Index" window also opens to the right of this window: ===>>
Double-click any subject header in the Quick Index window to locate that
subject header here. Use the Quick Index window as a quick navigator tool.
• Create Quick Indexes for your own ProTERM documents. For help on this
and other features, choose Help from the Apple menu (upper left corner).
** ——— **
***** Description and Purpose *****
When one of the scripts below are used with an Autologon macro, the script can allow you to automatically (hands-off) capture an ASCII file of the entire session from the point of logon. The ASCII file opens, reads the entire sesssion, and closes at the end of the session. The scripts work when combined with the autologon in the dialer file for the service called.
**** Script Differences ****
The scripts are all the same with exception of what combination of the day, date and time is appended to the file when it is saved. The example names all include the name “Session <date> and/or <time>”. The default name “Session” can be changed to a name that suits your purpose.
By using a file that just saves the year and month, the same file will be appended to each time the session is saved for the period of the month. By using the combination of year, month and day, any calls during that day will be appended to the original file. If a new file is desired for every call, use one of the scripts that save the file with year, month, day and time.
**** Use with PTMM ****
Using the scripts with ProTERM Message Manager (PTMM)
Although there are alternative and better ways to capture text when using PTMM (see Logfile.Keep in the PTMM Help menu), this script also works with PTMM dialers.
***** Setup and Install *****
• Decide which format you want to use from the selection below:
*** CONTENTS ***
ASCII RECEIVE EXAMPLE 1: [Session YYYY/MM/DD HHMM] (Session 1997/4/15 1053)
ASCII RECEIVE EXAMPLE 2: [Session MM/DD/YY] (Session 4/15/97 1048)
ASCII RECEIVE EXAMPLE 3: [Session MM/DD/YY] (Session 4/15/97)
ASCII RECEIVE EXAMPLE 4: [Session YYYY-MM-DD] (Session 1997-4-15)
ASCII RECEIVE EXAMPLE 5: [Session YYMMDD HHMM] (Session 970417 2228)
ASCII RECEIVE EXAMPLE 6: [Session YYMMDD] (Session 970417)
• Insert the cursor at the beginning of the script: “CMD_RCVASC...” Click
and drag to select all of the command script.
• Click on the Connect menu and choose the service you will be calling.
• Click on the Logon: radio button.
NOTE: If you do not have an autologon macro for the service, click Logon
Macro and change to Learn, call the service, and enter all the needed
information to call and logon to the service. Click Learn. (See the
ProTERM manual Index, Autolearn for details.)
• Insert the ASCII capture script into your autologon scrip somewhere before
or after where your password is printed (see example below).
**** Example with Autologon Macro ****
A simplified autologon macro that begins to save an ASCII file at logon, might look like this first example. The lines beginning with “PR” “WT” and END; are all part of the logon macro. The special script begins with “CMD”:
Several script examples are shown here. Each allows a different way to save the file with a name containing time and or date in various formats. Each will create and save a file with a name given by you, and be saved to a folder of your choice. The basic parts of the script break down as follows:
CMD_RCVASC Command Receive ASCII
STR_FORMAT String Format
.APPL Look in the folder where the ProTERM application is stored.